package com.avic.rong.activity.product;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.avic.rong.BaseActivity;
import com.avic.rong.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 在线客服
 */
public class ProductCommentActivity extends BaseActivity {


    public static final String ARG_KEYWORD = "keyword";


    @BindView(R.id.tuijian)
    TextView tuijian;

    @BindView(R.id.recycler_command)
    RecyclerView recycler_command;


    @Override
    protected int getContentViewId() {
        return R.layout.activity_product_comment;
    }


    @Override
    protected void initView() {

        ButterKnife.bind(this);
        tuijian.setText("在线服务");

        String keyWords = getIntent().getStringExtra(ARG_KEYWORD);
//        sharePreferenceUtils =  SharePreferenceUtils.getInstance(this);
//        webView.addJavascriptObject(this, null);

//        String url = AppUtils.BASE_URL + "appGood/" + skuIdStr;

//        webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
//        webView.getSettings().setJavaScriptEnabled(true);
//        webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);//适应内容大小


//        try {
//            Logger.i("---------" + AppUtils.BASE_URL + "cservice?token=" + URLEncoder.encode(SharedPreferencesUtil.getLoginToken(), "UTF-8"));
//            webView.loadUrl(AppUtils.BASE_URL + "cservice?token=" + URLEncoder.encode(SharedPreferencesUtil.getLoginToken(), "UTF-8"));
//        } catch (UnsupportedEncodingException e) {
//            e.printStackTrace();
//        }

    }



    @Override
    protected void addListener() {

    }


    @OnClick(R.id.img_back)
    public void onBack(){
       onBackPressed();
    }



    public static Intent getIntent(Context context,String keyword){
        Intent intent = new Intent(context, ProductCommentActivity.class);
        intent.putExtra(ARG_KEYWORD, keyword);
        return intent;
    }









}
